package com.cqndt.disaster.device.dao;

import java.util.Map;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import com.cqndt.disaster.device.vo.TabBasicVo;
import com.cqndt.disaster.device.domain.TabBasic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqndt.disaster.device.domain.TabBasicWithBLOBs;

@Mapper
public interface TabBasicMapper extends BaseMapper<TabBasic>{
	
	TabBasicVo selectTabBasicById(Integer id);
	TabBasicWithBLOBs selectByPrimaryKey(Integer id);
    /**
     * @param tabBasic
     * @return 灾害点列表
     **/
    List<TabBasicVo> selectTabBasic(TabBasicVo tabBasic);
    /**
     * @param areaCode
     * @param level
     * @return 根据区域统计灾害点数量
     **/
    Integer countDisasterNumber(@Param("areaCode") String areaCode,
    		@Param("level")String level,@Param("areaCodeSplit")String areaCodeSplit);

    
    /**
     * @param areaCode
     * @param level
     * @return 根据区域统计灾害点类型数量
     **/
    List<Map<String,Object>> countDisasterTypeNumber(@Param("areaCode") String areaCode,
    		@Param("level") String level,@Param("areaCodeSplit") String areaCodeSplit);

}